<?php
require dirname(__FILE__).'/include/common.inc.php';

$areaid = intval($areaid);
if(!isset($AREA[$areaid])) showmessage('访问的地区不存在！');

$catid = intval($catid);
if(!isset($CATEGORY[$catid])) showmessage('访问的栏目不存在！');
$C = cache_read('category_'.$catid.'.php');

$A = cache_read('area_'.$areaid.'.php');
extract($A);
$head['title'] = $name;
$head['keywords'] = $meta_keywords;
$head['description'] = $meta_description;

$page = max(intval($page), 1);

$catlist = submodelcat($C['modelid']);
unset($catlist[$catid]);

if($child)
{
	$areas = subarea($areaid);
	$template = $template ? $template : 'area';
}
else
{
	$template = 'area_list';
}
include template('phpcms', $template);
?>